package com.hxzy.controller.vue.login.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/8/29 9:21
 * @Version 1.0
 */
@ApiModel(value = "登录返回对象模型")
@Getter
@Setter
@ToString
public class AdminLoginResp {

    @ApiModelProperty(value = "主键")
    private Long  id;

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "权限(admin管理员，merchandiser商家)")
    private List<String> permissions;

    @ApiModelProperty(value = "令牌")
    private String uuid;

    @ApiModelProperty(value = "令牌过期时间")
    private Date expired;

    /**
     * 1超级管理员，0普通用户
     */
    private String root;
}
